Practice will help. But the only practice that is exactly like dancing in competitions is dancing in competitions - so do as many of them as you can. It may be easier if you compete a lot before you have high expectations - you can gain confidence by not being terrible. Then as your skills improve, you will already have confidence that you can do your best in competition.